Current File : /var/www/vinorea/modules/ipcatalogexportimport/views/templates/admin/ip_catalog_import/alias.tpl |
{**
*
* NOTICE OF LICENSE
*
* @author SmartPresta <tehran.alishov@gmail.com>
* @copyright 2024 SmartPresta
* @license Commercial License
*
*}
<div id="catalogEI-tab-content-Alias" class="catalogEI-tab-content" style="display: none;">
<form id="import_form_aliases" class="form-horizontal catalogEI_form" action="{$ajax_url}" method="post" enctype="multipart/form-data" name="aliases_import" novalidate="novalidate">
<input type="hidden" name="entity" value="aliases" />
<input type="hidden" name="filename" value="" />
<input type="hidden" name="id_employee" value="{$id_employee}" />
<div id="catalogEI-alias" class="panel catalogEI-tab">
<h3 class="tab"><i class="icon-clipboard"></i> {l s='Aliases' mod='ipcatalogexportimport'}</h3>
<div class="form-wrapper">
<ul class="nav nav-tabs">
<li class="active"><a data-toggle="tab" href="#alias_configurations">
<i class="icon-wrench"></i>
{l s='Configurations' mod='ipcatalogexportimport'}</a>
</li>
<li><a data-toggle="tab" href="#alias_fields">
<i class="icon-sliders"></i>
{l s='Fields' mod='ipcatalogexportimport'}</a>
</li>
<li><a data-toggle="tab" href="#alias_filters">
<i class="icon-filter"></i>
{l s='Filters' mod='ipcatalogexportimport'}</a>
</li>
</ul>
<div class="tab-content">
<div id="alias_configurations" class="tab-pane in active catalogEI_configurations">
<div class="alert alert-info alert-dismissible fade in">
<a href="#" class="close" data-dismiss="alert" aria-label="close">×</a>
<span><strong>{l s='Tips before import!' mod='ipcatalogexportimport'}</strong></span>
<ul>
<li>{l s='Do a backup of your shop and database' mod='ipcatalogexportimport'}</li>
</ul>
</div>
<div id="after_upload_success_alert_aliases" class="row after_upload_success_alert hide">
<div class="alert alert-success col-xs-12">
<span></span>
<button type="button" class="btn btn-default pull-right change_file_btn">
<i class="icon-pencil"></i> {l s='Change' mod='ipcatalogexportimport'}
</button>
</div>
</div>
<div id="after_upload_danger_alert_aliases" class="row after_upload_danger_alert hide">
<div class="alert alert-danger alert-dismissible col-xs-12">
<a href="#" class="close" data-dismiss="alert" aria-label="close">×</a>
<span>{l s='The file type is incorrect.' mod='ipcatalogexportimport'}</span>
</div>
</div>
<div id="import_source_aliases" class="form-group import_source">
<br>
<label class="control-label col-lg-3">
<span class="control-label">
{l s='Import source' mod='ipcatalogexportimport'}
</span>
</label>
<div class="col-lg-9">
<select name="import_source"
class="fixed-width-xxl"
id="alias_import_source">
<option value="file_upload">{l s='File upload' mod='ipcatalogexportimport'}</option>
<option value="from_url">{l s='URL' mod='ipcatalogexportimport'}</option>
<option value="from_ftp">{l s='FTP' mod='ipcatalogexportimport'}</option>
<option value="from_history">{l s='History' mod='ipcatalogexportimport'}</option>
</select>
</div>
</div>
<div id="import_type_aliases">
<br>
<div class="file_upload import_type">
<div id="file_uploader_aliases" class="form-group file_uploader">
<label class="control-label col-lg-3 required">
{l s='Select a file to import' mod='ipcatalogexportimport'}
</label>
<div class="col-lg-4">
<input type="file" name="file" accept=".csv,.txt,.xls,.xlsx,.ods" data-entity="aliases" class="entity_file hide">
<div class="dummyfile input-group">
<input class="entity_file-name uploader_input" value="{l s='Choose file' mod='ipcatalogexportimport'}" type="text" name="aliases" readonly>
<span class="input-group-btn">
<button type="button" name="submitAddAttachments" class="entity_file-selectbutton btn btn-default">
<i class="icon-folder-open"></i> {l s='Upload file' mod='ipcatalogexportimport'}
</button>
</span>
</div>
<p class="help-block">
{l s='Allowed formats: .csv, .txt, .xls, .xlsx, .ods' mod='ipcatalogexportimport'}
</p>
</div>
{*<div class="col-lg-3">
{l s='or' mod='ipcatalogexportimport'}
<button type="button" class="btn btn-default show_upload_history" {if $files.aliases.data|count == 0}disabled{/if}>
<span class="badge badge-info">{$files.aliases.data|count}</span> {l s='Choose from history' mod='ipcatalogexportimport'}
</button>
</div>*}
</div>
</div>
<div id="upload_history_aliases" class="panel upload_history import_type hide">
<div>
<div class="panel-heading">
{l s='History of uploaded files' mod='ipcatalogexportimport'}
<span class="file_history_nb badge">{$files.aliases.data|count}</span>
{*<button type="button" class="btn btn-link pull-right close_history_btn">
<i class="icon-remove"></i>
</button>*}
</div>
{* <div class="panel-body">*}
<table id="upload_history_table_aliases" class="table table-striped table-bordered upload_history_table" data-table="aliases">
<thead>
<tr>
<th>{l s='File' mod='ipcatalogexportimport'}</th>
<th>{l s='Size' mod='ipcatalogexportimport'}</th>
<th>{l s='Action' mod='ipcatalogexportimport'}</th>
</tr>
</thead>
</table>
</div>
</div>
<div class="from_url import_type hide">
<div class="form-group">
<label class="control-label col-lg-3 required">
{l s='File URL' mod='ipcatalogexportimport'}
</label>
<div class="col-lg-5">
<input type="text"
id="file_url_aliases"
name="file_url"
value=""
class="file_url_input"
size="33"
required="required" />
</div>
<div class="col-lg-1">
<button id="file_download_from_url_aliases" class="file_download_from_url_btn btn btn-default" data-entity="aliases">
<i class="process-icon-download"></i> {l s='Download' mod='ipcatalogexportimport'}
</button>
</div>
</div>
</div>
<div class="from_ftp import_type hide">
<div class="form-group">
<label class="control-label col-lg-3">
{l s='FTP Type' mod='ipcatalogexportimport'}
</label>
<div class="col-lg-9">
<select class="fixed-width-xxl" id="ftp_type_aliases" name="ftp_type">
<option value="ftp">{l s='FTP' mod='ipcatalogexportimport'}</option>
<option value="ftps">{l s='FTPS (Explicit)' mod='ipcatalogexportimport'}</option>
<option value="sftp">{l s='SFTP' mod='ipcatalogexportimport'}</option>
</select>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-3 required">
<span class="label-tooltip" data-toggle="tooltip" title="" data-original-title="{l s='Domain name or IP address' mod='ipcatalogexportimport'}">
{l s='FTP URL' mod='ipcatalogexportimport'}
</span>
</label>
<div class="col-lg-9">
<div class="input-group fixed-width-xxl">
<span class="input-group-addon">
<i class="icon-link"></i>
</span>
<input type="text"
name="ftp_url"
id="ftp_url_aliases"
value=""
class=""
size="33"
required="required" />
</div>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-3">
<span class="label-tooltip" data-toggle="tooltip" title="" data-original-title="{l s='Default FTP port is 21 for FTP, and 22 for SFTP, if no port specified.' mod='ipcatalogexportimport'}">
{l s='FTP Port' mod='ipcatalogexportimport'}
</span>
</label>
<div class="col-lg-3">
<div class="input-group fixed-width-xxl">
<span class="input-group-addon">
<i class="icon-circle-thin"></i>
</span>
<input type="text"
name="ftp_port"
id="ftp_port_aliases"
value=""
class=""
size="33" />
</div>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-3 required">
{l s='FTP Username' mod='ipcatalogexportimport'}
</label>
<div class="col-lg-9">
<div class="input-group fixed-width-xxl">
<span class="input-group-addon">
<i class="icon-user"></i>
</span>
<input type="text"
name="ftp_username"
id="ftp_username_aliases"
value=""
class=""
size="33"
required="required" />
</div>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-3 required">
{l s='FTP Password' mod='ipcatalogexportimport'}
</label>
<div class="col-lg-9">
<div class="input-group fixed-width-xxl">
<span class="input-group-addon">
<i class="icon-lock"></i>
</span>
<input type="text"
name="ftp_password"
id="ftp_password_aliases"
value=""
class=""
size="33" />
</div>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-3 required">
{l s='FTP File Path' mod='ipcatalogexportimport'}
</label>
<div class="col-lg-9">
<div class="input-group fixed-width-xxl">
<span class="input-group-addon">
<i class="icon-file-text"></i>
</span>
<input type="text"
name="ftp_filepath"
id="ftp_filepath_aliases"
value=""
class=""
size="33" />
</div>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-3">
</label>
<div class="col-lg-9">
<div class="input-group fixed-width-xxl">
<button id="file_download_from_ftp_aliases" class="file_download_from_ftp_btn btn btn-default pull-right" data-entity="aliases">
<i class="process-icon-download"></i> {l s='Download' mod='ipcatalogexportimport'}
</button>
</div>
</div>
</div>
</div>
</div>
<br>
<div class="csv_options">
<div class="form-group">
<label class="control-label col-lg-3">
<span class="label-tooltip" data-toggle="tooltip" title="" data-original-title="{l s='e.g. a,b,c or a;b;c or a b c' mod='ipcatalogexportimport'}">
{l s='Value separator' mod='ipcatalogexportimport'}
</span>
</label>
<div class="col-lg-9">
<select name="csv_separator"
class="fixed-width-xxl"
id="alias_csv_separator">
<option value=";">; {l s='(semicolon)' mod='ipcatalogexportimport'}</option>
<option value=",">, {l s='(comma)' mod='ipcatalogexportimport'}</option>
<option value="t">\t {l s='(tab)' mod='ipcatalogexportimport'}</option>
</select>
</div>
</div>
{*<div class="form-group">
<label class="control-label col-lg-3">
<span class="label-tooltip" data-toggle="tooltip" title="" data-original-title="{l s='e.g. a,b,c or "a","b","c"' mod='ipcatalogexportimport'}">
{l s='Value enclosure' mod='ipcatalogexportimport'}
</span>
</label>
<div class="col-lg-9">
<select name="csv_enclosure"
class="fixed-width-xxl"
id="alias_csv_enclosure">
<option value="quot">"" {l s='(quotation marks)' mod='ipcatalogexportimport'}</option>
<option value="none">{l s=' (nothing)' mod='ipcatalogexportimport'}</option>
</select>
</div>
</div>*}
<br>
</div>
<div class="form-group">
<label class="control-label col-lg-3">
<span class="label-tooltip" data-toggle="tooltip" title="" data-original-title="{l s='If there are several values in a cell, by what symbol they should be separated. By default, it is a comma.' mod='ipcatalogexportimport'}">
{l s='Multiple Value separator' mod='ipcatalogexportimport'}
</span>
</label>
<div class="col-lg-9">
<input type="text"
name="multivalue_separator"
id="alias_multivalue_separator"
value=","
class="fixed-width-xxl"
size="33"
required="required" />
<p class="help-block">
{l s='e.g. Blouse; red.jpg, blue.jpg, green.jpg; 129.90' mod='ipcatalogexportimport'}
</p>
</div>
</div>
<div class="form-group action">
<label class="control-label col-lg-3">
<span class="label-tooltip" style="font-weight: 600;" data-toggle="tooltip" title="" data-original-title="{l s='1) "Insert": There will be only insertions if the insert conditions are met and no update. 2) "Update": There will be only updates if the update conditions are met, no insertion. 3) "Update and Insert": First the update conditions will be checked. If the conditions are met, there will be updates. Otherwise, there will be insertions if the insert conditions are met.' mod='ipcatalogexportimport'}">
{l s='Action' mod='ipcatalogexportimport'}
</span>
</label>
<div class="col-lg-3">
<select name="target_action"
class="fixed-width-xxl"
id="aliases_target_action">
<option value="insert">{l s='Insert' mod='ipcatalogexportimport'}</option>
<option value="update">{l s='Update' mod='ipcatalogexportimport'}</option>
<option value="update_insert">{l s='Update and Insert' mod='ipcatalogexportimport'}</option>
</select>
<p class="help-block">
</p>
</div>
</div>
<div class="update_options hide">
<h4 class="col-lg-pull-3">{l s='Update options' mod='ipcatalogexportimport'}</h4>
<div class="form-group">
<label class="control-label col-lg-3">
<span class="label-tooltip" data-toggle="tooltip" title="" data-original-title="{l s='' mod='ipcatalogexportimport'}">
{l s='Update by' mod='ipcatalogexportimport'}
</span>
</label>
<div class="col-lg-3">
<select name="update_by"
class="fixed-width-xxl"
id="alias_update_by">
<option value="id">{l s='Alias ID' mod='ipcatalogexportimport'}</option>
<option value="name">{l s='Alias Name' mod='ipcatalogexportimport'}</option>
</select>
<p class="help-block">
</p>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-3">
<span class="label-tooltip" data-toggle="tooltip" title="" data-original-title="{l s='If enabled, when the updated new value is empty, the old value will not be updated. Otherwise, it will be updated to empty value if the new value is empty.' mod='ipcatalogexportimport'}">
{l s='Keep the old value if the new value is empty' mod='ipcatalogexportimport'}
</span>
</label>
<div class="col-lg-9">
<span class="switch prestashop-switch fixed-width-lg">
<input type="radio" name="keep_old_value" id="alias_keep_old_value_yes" value="1" checked="checked" />
<label for="alias_keep_old_value_yes">{l s='Yes' mod='ipcatalogexportimport'}</label>
<input type="radio" name="keep_old_value" id="alias_keep_old_value_no" value="0" />
<label for="alias_keep_old_value_no">{l s='No' mod='ipcatalogexportimport'}</label>
<a class="slide-button btn"></a>
</span>
<p class="help-block">
</p>
</div>
</div>
</div>
<div class="insert_options">
<h4 class="col-lg-pull-3">{l s='Insert options' mod='ipcatalogexportimport'}</h4>
<div class="form-group">
<label class="control-label col-lg-3">
<span class="label-tooltip delete_entities" data-toggle="tooltip" title="" data-original-title="{l s='If enabled, all the existing aliases will be deleted before import.' mod='ipcatalogexportimport'}">
{l s='Delete all existing aliases before import' mod='ipcatalogexportimport'}
</span>
</label>
<div class="col-lg-9">
<span class="switch prestashop-switch fixed-width-lg">
<input type="radio" name="truncate" id="alias_truncate_yes" value="1" />
<label for="alias_truncate_yes">{l s='Yes' mod='ipcatalogexportimport'}</label>
<input type="radio" name="truncate" id="alias_truncate_no" value="0" checked="checked" />
<label for="alias_truncate_no">{l s='No' mod='ipcatalogexportimport'}</label>
<a class="slide-button btn"></a>
</span>
<p class="help-block">
</p>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-3">
<span class="label-tooltip" data-toggle="tooltip" title="" data-original-title="{l s='Enable this option to keep your imported aliases’ ID number as is. Otherwise, PrestaShop will ignore them and create auto-incremented ID numbers. If this option is enabled and there is a alias in your database with this ID, then this alias will not be inserted.' mod='ipcatalogexportimport'}">
{l s='Keep ID numbers of inserted aliases' mod='ipcatalogexportimport'}
</span>
</label>
<div class="col-lg-9">
<span class="switch prestashop-switch fixed-width-lg">
<input type="radio" name="keep_id" id="alias_keep_id_yes" value="1" checked="checked" />
<label for="alias_keep_id_yes">{l s='Yes' mod='ipcatalogexportimport'}</label>
<input type="radio" name="keep_id" id="alias_keep_id_no" value="0" />
<label for="alias_keep_id_no">{l s='No' mod='ipcatalogexportimport'}</label>
<a class="slide-button btn"></a>
</span>
<p class="help-block">
</p>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-3">
<span class="label-tooltip" data-toggle="tooltip" title="" data-original-title="{l s='If a alias exists with the imported alias name, you can: 1) Ignore the imported row, 2) Create a new alias with the existing name.' mod='ipcatalogexportimport'}">
{l s='If a alias exists with the alias name you import' mod='ipcatalogexportimport'}
</span>
</label>
<div class="col-lg-3">
<select name="name_exists"
class="fixed-width-xxl"
id="alias_name_exists">
<option value="ignore">{l s='Do not insert' mod='ipcatalogexportimport'}</option>
<option value="insert">{l s='Insert' mod='ipcatalogexportimport'}</option>
</select>
<p class="help-block">
</p>
</div>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-3">
<span class="label-tooltip" data-toggle="tooltip" title="" data-original-title="{l s='If the imported file is a ISO 8859-1 encoded file, it is necessary to convert its ecoding to UTF-8.' mod='ipcatalogexportimport'}">
{l s='Convert to UTF-8' mod='ipcatalogexportimport'}
</span>
</label>
<div class="col-lg-9">
<span class="switch prestashop-switch fixed-width-lg">
<input type="radio" name="convert" id="alias_convert_yes" value="1" />
<label for="alias_convert_yes">{l s='Yes' mod='ipcatalogexportimport'}</label>
<input type="radio" name="convert" id="alias_convert_no" value="0" checked="checked" />
<label for="alias_convert_no">{l s='No' mod='ipcatalogexportimport'}</label>
<a class="slide-button btn"></a>
</span>
<p class="help-block">
</p>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-3">
<span class="label-tooltip" data-toggle="tooltip" title="" data-original-title="{l s='Sends an email to let you know your import is complete. It can be useful when handling large files, as the import may take some time.' mod='ipcatalogexportimport'}">
{l s='Send notification email' mod='ipcatalogexportimport'}
</span>
</label>
<div class="col-lg-9">
<span class="switch prestashop-switch fixed-width-lg">
<input type="radio" name="send_email" id="alias_send_email_yes" value="1" />
<label for="alias_send_email_yes">{l s='Yes' mod='ipcatalogexportimport'}</label>
<input type="radio" name="send_email" id="alias_send_email_no" value="0" checked="checked" />
<label for="alias_send_email_no">{l s='No' mod='ipcatalogexportimport'}</label>
<a class="slide-button btn"></a>
</span>
<p class="help-block">
</p>
</div>
</div>
{if $shop_feature}
<hr>
<h4 class="filter">{l s='Select shops into which you want to import' mod='ipcatalogexportimport'}</h4>
{foreach from=$shops item=shop}
{if $shop.id_shop eq $context_shop}
<div class="form-group">
<label class="control-label col-lg-3">
{$shop.name} ({l s='This shop' mod='ipcatalogexportimport'})
</label>
<div class="col-lg-9">
<span class="switch prestashop-switch fixed-width-lg">
<input type="radio" name="shops[{$shop.id_shop}]" id="alias_shops[{$shop.id_shop}]_yes" value="1" checked="checked" />
<label for="alias_shops[{$shop.id_shop}]_yes">{l s='Yes' mod='ipcatalogexportimport'}</label>
<input type="radio" name="shops[{$shop.id_shop}]" id="alias_shops[{$shop.id_shop}]_no" value="0" />
<label for="alias_shops[{$shop.id_shop}]_no">{l s='No' mod='ipcatalogexportimport'}</label>
<a class="slide-button btn"></a>
</span>
<p class="help-block">
</p>
</div>
</div>
{else}
<div class="form-group">
<label class="control-label col-lg-3">
{$shop.name}
</label>
<div class="col-lg-9">
<span class="switch prestashop-switch fixed-width-lg">
<input type="radio" name="shops[{$shop.id_shop}]" id="alias_shops[{$shop.id_shop}]_yes" value="1" />
<label for="alias_shops[{$shop.id_shop}]_yes">{l s='Yes' mod='ipcatalogexportimport'}</label>
<input type="radio" name="shops[{$shop.id_shop}]" id="alias_shops[{$shop.id_shop}]_no" value="0" checked="checked" />
<label for="alias_shops[{$shop.id_shop}]_no">{l s='No' mod='ipcatalogexportimport'}</label>
<a class="slide-button btn"></a>
</span>
<p class="help-block">
</p>
</div>
</div>
{/if}
{/foreach}
{/if}
<div class="panel-footer">
{*<div class="text-right">*}
<button class="btn btn-default next" data-value="alias">
<i class="process-icon-next"></i>{l s='Next' mod='ipcatalogexportimport'}
</button>
{*</div>*}
</div>
</div>
<div id="alias_fields" class="tab-pane catalogEI_fields catalogEI_alias_fields">
<div id="container-alias" class="panel">
<h3><i class="icon-list-alt"></i> <span class="panel_header_text">{l s='Columns Mapping' mod='ipcatalogexportimport'}</span></h3>
<div class="alert alert-info">
<p>{l s='This a the preview of the columns to import. The preview is used so that you can save the sequence of the columns that you will import even before uploading any file. You can select or deselect, or change the orders of the columns.' mod='ipcatalogexportimport'}</p>
<p><strong style="color:red">{l s='Important!' mod='ipcatalogexportimport'}</strong> {l s='If an alias exists with the imported ID, it will be updated, otherwise a new alias will be created. So, if you want to only create new aliases while there are existing ones with the imported IDs, you must ignore the ID column below. Note that "If an alias exists with the imported alias name" condition has priority!' mod='ipcatalogexportimport'}</p>
</div>
<div id="error_duplicate_type_aliases" class="alert alert-danger" style="display:none;">
{l s='Two columns cannot have the same value' mod='ipcatalogexportimport'}:
<strong></strong>
</div>
<div id="required_column_aliases" class="alert alert-danger" style="display:none;">
{l s='This column must be set:' mod='ipcatalogexportimport'} <span id="missing_column_aliases"> </span>
</div>
{* <form action="{$current|escape:'html':'UTF-8'}&token={$token|escape:'html':'UTF-8'}" method="post" id="import_form" name="import_form" class="form-horizontal">*}
<div class="row">
<div class="form-group col-lg-5">
<label class="control-label" for="alias_skip">
<span class="label-tooltip" data-toggle="tooltip" title="" data-original-title="{l s='This number indicates how many of the first lines of your file should be skipped when importing the data. For instance, set it to 1 if the first row of your file contains headers.' mod='ipcatalogexportimport'}">
{l s='Rows to skip' mod='ipcatalogexportimport'}
</span>
</label>
<input class="fixed-width-md" type="text" name="skip" id="alias_skip" value="1" />
</div>
<div class="form-group col-lg-7 pull-right">
<button type="button" class="btn btn-default pull-right map-fields"><i class="icon-arrows"></i> {l s='Map all fields' mod='ipcatalogexportimport'}</button>
<button type="button" class="btn btn-default pull-right ignore-fields"><i class="icon-minus"></i> {l s='Ignore all fields' mod='ipcatalogexportimport'}</button>
<button type="button" class="btn btn-default pull-right save-apply-fields label-tooltip" data-toggle="tooltip" data-html="true" title="" data-original-title="{l s='You will be sent to the "Save" section to save your current changes or apply one of your previous changes.' mod='ipcatalogexportimport'}"><i class="icon-external-link-square"></i> {l s='Save or apply your changes' mod='ipcatalogexportimport'}</button>
</div>
</div>
<div id="view_data_aliases" class="form-group catalogEI_view_data">
<div class="col-lg-12">
{*{section name=nb_i start=0 loop=$nb_table step=1}
{assign var=i value=$smarty.section.nb_i.index}
{$data.$i}
{/section}*}
<div id="view_data_table_aliases" class="catalogEI_view_data_table">
{$columns.aliases}
</div>
<div class="text-center paginate aliases">
<button id="btn_left_aliases" type="button" class="btn btn-default go_left" disabled="disabled" data-entity="aliases">
<i class="icon-angle-left"></i>
</button>
<button id="btn_aliases_page_1" type="button" class="btn btn-default activated btn_page" data-entity="aliases">1</button>
<span class="dynamic_buttons">
{if $paginator.aliases.nbTable > 7}
<span id="btn_aliases_left_dots" class="hide">...</span>
{for $foo=2 to $paginator.aliases.nbTable - 1}
<button id="btn_aliases_page_{$foo}" type="button" class="btn btn-default btn_hideable btn_page{if $foo > 5} hide{/if}" data-entity="aliases">{$foo}</button>
{/for}
<span id="btn_aliases_right_dots">...</span>
<button id="btn_aliases_page_{$paginator.aliases.nbTable}" type="button" class="btn btn-default btn_page" data-entity="aliases">{$paginator.aliases.nbTable}</button>
{else}
{for $foo=2 to $paginator.aliases.nbTable}
<button id="btn_aliases_page_{$foo}" type="button" class="btn btn-default btn_page" data-entity="aliases">{$foo}</button>
{/for}
{/if}
</span>
<button id="btn_right_aliases" type="button" class="btn btn-default go_right"{if $paginator.aliases.nbTable == 1} disabled="disabled"{/if} data-entity="aliases">
<i class="icon-angle-right"></i>
</button>
</div>
</div>
</div>
{*<div class="panel-footer">
<button type="button" class="btn btn-default" onclick="window.history.back();">
<i class="process-icon-cancel text-danger"></i>
{l s='Cancel' mod='ipcatalogexportimport'}
</button>
<button id="import" name="import" type="submit" onclick="return (validateImport(new Array({$res})));" class="btn btn-default pull-right">
<i class="process-icon-ok text-success"></i>
{l s='Import .CSV data' mod='ipcatalogexportimport'}
</button>
</div>*}
{* </form>*}
</div>
<div class="panel-footer">
<button class="btn btn-default back" data-value="alias">
<i class="process-icon-back"></i>{l s='Back' mod='ipcatalogexportimport'}
</button>
<button class="btn btn-default next" data-value="alias">
<i class="process-icon-next"></i>{l s='Next' mod='ipcatalogexportimport'}
</button>
<button class="btn btn-default pull-right" type="submit" value="1" name="import_aliases" disabled>
<i class="process-icon-upload"></i>{l s='Import' mod='ipcatalogexportimport'}
</button>
</div>
</div>
<div id="alias_filters" class="tab-pane catalogEI_filters">
<div class="row filter-fields-container">
<div class="columns_section_for_filter col-xs-6 col-md-4">
<fieldset class="columns_fieldset_for_filter">
<legend>{l s='Click on a field to filter' mod='ipcatalogexportimport'} </legend>
<div class="columns_header_for_filter row">
<span class="clearable">
<input class="columns_search_for_filter" type="search" placeholder="{l s='Search for fields...' mod='ipcatalogexportimport'}" />
<i class="clearable_clear_for_filter">×</i>
</span>
</div>
<div class="scroll_columns_for_filter scrollable">
<ul class="columns_for_filter list-group item-list">
{foreach from=$fields.aliases key=k item=field}
{if $field.type}
<li class="list-group-item" data-type="{$field.type}" data-value="{$k}">{str_replace([' *', ' **'], '', $field.label)}</li>
{/if}
{/foreach}
</ul>
</div>
</fieldset>
</div>
<div class="filter_section_container col-xs-6 col-md-8">
</div>
</div>
<div class="panel-footer">
<button class="btn btn-default back" data-value="alias">
<i class="process-icon-back"></i>{l s='Back' mod='ipcatalogexportimport'}
</button>
<button class="btn btn-default pull-right" type="submit" value="1" name="import_aliases" disabled>
<i class="process-icon-upload"></i>{l s='Import' mod='ipcatalogexportimport'}
</button>
</div>
</div>
</div>
</div>
</div>
</form>
</div>